package com.example.jvm.invoke;

import java.util.function.Consumer;

/**
 * @author zhaoyunlong
 * @date 2021/12/9
 * @description
 */
public class InvokeClass_02 {

    public static void main(String[] args) {

        Consumer<C> c = C::c;
        I d = C::n;
        I d1 = C::n;
        I d2 = ()->{
            C.n();
        };
    }

    public interface  I{
        void m();
    }

    public static class  C{
        static void n(){
            System.out.println("hello");
        }
        void c(){

        }
    }
}
